package yfdc;
import com.google.gson.annotations.Expose;
public final class JsonException extends Exception implements java.io.Serializable {
	@Expose(serialize = false, deserialize = false)
	private transient static final long serialVersionUID = 0L;
	private Throwable cause;
	public JsonException(Throwable cause) {
		super();
		initCause(cause);
	}
	public final Throwable getCause() {
		return this.cause;
	}
	public final Throwable initCause(Throwable cause) {
		if (cause != null) {
			this.cause = cause;
			String ste = cause.getMessage();
			if (ste == null || ste.length() == 0) ste = "Unknown reason";
			this.msg = ste;
		}
		return this;
	}
	private String msg;
	//msg is already public.
	@Deprecated public String getMessage() {
		return msg;
	}
	public String toString() {
		return "yfdc.JsonException:" + this.msg;
	}
}
